package com.gr.catanddog_common.exception;

import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Setter
@Getter
public class BisException extends RuntimeException{
    private String errorMsg;
    public BisException(BaseExceptionInterface baseExceptionInterface){
        this.errorMsg = baseExceptionInterface.getErrorMsg();
    }
    public BisException(){
        this.errorMsg = "出错啦，后台小哥正在努力修复中...";
    }
}
